package com.fyj.controller;


import com.fyj.feign.orderFeign;
import common.R;
import entity.order.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yixin
 * @since 2023-05-12
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private orderFeign orderFeign;

    @GetMapping("zzz")
    public R zzz(){
        List<Orders> orders = orderFeign.selOrderByUserId(1);
        return R.success(orders);
    }
}

